package com.woniuxy.lrz.carlproject.dao;

import com.woniuxy.lrz.carlproject.model.UserOrder;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 * 用户订单表 Mapper 接口
 * </p>
 *
 * @author lrz
 * @since 2022-09-28
 */
public interface UserOrderMapper extends BaseMapper<UserOrder> {

    @Update("update user_order set status=#{payed} where user_order_no=#{no}")
    void updateState(@Param("no") String tradeNo,@Param("payed") String payed);
}
